package com.atguigu.lease.common.utils;

import java.util.Random;

/**
 * @Author: shenhao
 * @CreatTime: 2024/9/12 11:41
 * @Version: 1.0
 */
public class VerifyCodeUtil {
    public static String createVerifyCode(int len) {
        StringBuilder sb = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < len; i++) {
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }
}
